QT += core gui widgets
TEMPLATE = lib
CONFIG += plugin

# 输出到主程序的插件目录（根据调试/发布模式 + 32/64位架构区分路径）
contains(CONFIG, debug) {
    # 调试模式路径
    contains(QMAKE_HOST.arch, i386) {
        # 32位架构
        DESTDIR = ../build/debug/x86/plugins
    } else {
        # 64位架构（兼容x86_64/amd64等）
        DESTDIR = ../build/debug/x64/plugins
    }
} else {
    # 发布模式路径
    contains(QMAKE_HOST.arch, i386) {
        # 32位架构
        DESTDIR = ../build/release/x86/plugins
    } else {
        # 64位架构
        DESTDIR = ../build/release/x64/plugins
    }
}

INCLUDEPATH += ./ \
               ../MainFrame \
               ./ControlModuleManagement  \
               ./CameraManagement

SOURCES += DeviceManagementWidget.cpp \
           DeviceManagementPlugin.cpp \
           SDKManager.cpp \
           SwitchSliderWidget.cpp

HEADERS += DeviceManagementWidget.h \
           CameraSDKInterface.h \
           ControlModuleSDKInterface.h \
           DeviceManagementPlugin.h \
           $$PWD/../MainFrame/CameraPluginInterface.h \
           SDKInterface.h \
           SDKManager.h \
           SwitchSliderWidget.h

FORMS += DeviceManagementWidget.ui \
    ControlModuleManagement/SKFunctionSet.ui \
    CameraManagement/CameraTriggerSettings.ui

# 设备管理插件主项目文件

RESOURCES += \
    icon.qrc
